<template>
    <el-alert type="info"
              :closable="false"
    >
        <el-icon class="close_icon" @click="close"><Close /></el-icon>
        <slot></slot>
    </el-alert>
</template>

<script setup lang="ts">
const emits = defineEmits(['close'])
const close = () => {
    emits("close")
}
</script>

<style scoped lang="scss">
.close_icon{
    position: absolute;
    right: 10px;
    top: 10px;
}
</style>
